package com.template.templateuser.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Administrator
 */
@Data
@ApiModel(value = "SysMenuDTO", description = "菜单")
public class SysMenuDTO implements Serializable {
    private Long id ;
    @ApiModelProperty("菜单名称")
    private  String menuName;
    @ApiModelProperty("上级菜单")
    private   Long parentId;
    @ApiModelProperty("排序")
    private   Integer  order_num ;
    @ApiModelProperty("请求地址")
    private    String  url ;
    @ApiModelProperty("打开方式（menuItem页签 menuBlank新窗口）")
    private   String   target ;
    @ApiModelProperty("菜单类型（1目录 2菜单 3按钮）")
    private   Integer    menuType;
    @ApiModelProperty("菜单状态（0显示 1隐藏")
    private    Integer   visible;
    @ApiModelProperty("权限标识")
    private     String  perms ;
    @ApiModelProperty("菜单图标")
    private    String   icon;
    private   Long     createId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private   LocalDateTime    updateTime ;
    @ApiModelProperty("备注")
    private   String    remark ;
    @ApiModelProperty("菜单标示")
    private   String    menuKey ;

    private    Integer deleted;


    private List<SysMenuDTO> children;

    private String parentName;
}
